package com.hua.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hua.common.Response;
import com.hua.domain.Discountcard;

import java.util.List;

/**
* @author Distance
* @description 针对表【discountcard(优惠卷)】的数据库操作Service
* @createDate 2022-10-22 15:51:26
*/
public interface DiscountcardService extends IService<Discountcard> {

    /**
     * @author Distance
     * @return
     */
    Response<List<Discountcard>>  getAllDiscounts(Long userId);

    Response<String>sendDiscount(Long discountId);

    Response<String> createDiscount(Discountcard discountcard);

    Response<String> deleteDiscount(Integer discountcard);

    Response<String> updateDiscount(Discountcard discountcard);

    Response<String> updateDiscountStatus(Long discountId, Integer status);
}
